package com.hopes.bizz.risk.transfer.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/1 9:52
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Resource
    private RiskAuthInterceptor riskAuthInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(riskAuthInterceptor).addPathPatterns("/v2/data/receive/**");
    }
}
